//
// Created by lenovo on 2016/12/23 0023.
//题目：一个5位数，判断它是不是回文数。即12321是回文数，个位与万位相同，十位与千位相同。
//
#include <stdio.h>

int main() {
    long ge, shi, qian, wan, x;
    printf("Please input 5number:");
    scanf("%ld", &x);
    wan = x / 10000;
    qian = x % 10000 / 1000;
    shi = x % 100 / 10;
    ge = x % 10;
    if (ge == wan && shi == qian) {
        printf("This is a huiwen number \n");
    } else {
        printf("This is not a huiwen number \n");
    }
}
